<template>
  <div class="sub-category-list">
    <div
      class="sub-category-list-item"
      v-for="item in subCategoryList"
      :key="item.image"
    >
      <img :src="item.image" alt="" />
      <div class="title">{{ item.title }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "subCategoryList",
  props: {
    subCategoryList: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style scoped>
.sub-category-list {
  width: 100%;
  background-color: #ffffff;
  display: flex;
  flex-wrap: wrap;
}
.sub-category-list-item {
  width: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 10px;
}
.sub-category-list-item img {
  width: 90%;
}
.sub-category-list-item .title {
  margin-top: 10px;
  font-size: 14px;
}
</style>
